﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<AgriMarketWebProj.AgriMarketService.TypeOfAuction>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    AgriMarket|Quản trị kiểu đấu giá
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">

<h2>Danh sách các kiểu đấu giá</h2>

<p>
    <%: Html.ActionLink("Create New", "Create") %>
</p>
<%=Html.ValidationSummary(false) %>
<%--<fieldset>
Kiểu đấu giá mới: <input type='text' placeholder='Kiểu đấu giá mới'  name='typeName' id='typeName' />
<input type='button' value='Add' />
</fieldset>--%>
<table>
    <tr>
        <th>
            TypeId
        </th>
        <th>
            TypeName
        </th>
        <th></th>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.DisplayFor(modelItem => item.TypeId) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.TypeName) %>
        </td>
        <td>
            <%: Html.ActionLink("Edit", "Edit", new { id=item.TypeId }) %> |
            <%: Html.ActionLink("Delete", "Delete", new { id = item.TypeId })%>
        </td>
    </tr>
<% } %>

</table>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
